package com.qwz.example;
/**
* @Description: 模板方法的客户端
* @Package com.qwz.example.Client
* @author Qiuwuzhi
* @date 2019/12/24 17:24
* @version V1.0
*/
public class Client {
    public static void main(String[] args) {
        //准备登录人的信息
        LoginModel loginModel = new LoginModel();
        loginModel.setLoginId("admin");
        loginModel.setPwd("workerpwd");

        LoginTemplate workerLogin = new WorkerLogin();
        LoginTemplate normalLogin = new NormalLogin();

        boolean login = workerLogin.login(loginModel);
        System.out.println("可以登录工作平台="+login);

        login = normalLogin.login(loginModel);
        System.out.println("可以进行登录人员普通="+login);
    }
}
